//
//  Config.h
//  VidoarDemo
//
//  Created by xm on 2025/6/17.
//

#ifndef Config_h
#define Config_h

// Device UI
#define StatusHeight [UIDevice xm_statusBarHeight]

#define NavBarHeight 44

#define is_FullScreen (StatusHeight == 44)

#define is_IphoneX ([[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom > 0.0)


#define ScreenScale (is_FullScreen?screenWidth/414.0:screenWidth/375.0)

#define screenWidth [UIScreen mainScreen].bounds.size.width

#define screenHeight ([UIScreen mainScreen].bounds.size.height - (is_FullScreen?34:0))

#define SquareFont(a) [UIFont fontWithName:@"Square721BT-BoldCondensed" size:a]

#define NavAndStatusToolHeight (StatusHeight+NavBarHeight)

#define m3_userDefaults         [M3UserDefaults share]

#define HexColor(str) [UIColor colorWithHexString:(str)]
#define HexColorWithAlpha(str,alpha) [UIColor colorWithHexString:(str) withAlpha:(CGFloat)alpha]

#define m3_global            [GlobalService share]
#define m3_keeplive            [KeepLiveService share]


typedef NS_ENUM(NSInteger, KeepLiveService_Mode){
    KeepLiveService_Mode_Task = 1,
    KeepLiveService_Mode_Audio = 2,
    KeepLiveService_Mode_Location = 3
    
};


#endif /* Config_h */
